package qj.util;


public class BufferUtil {
	public static final int REASONABLE_BUFFER_SIZE = 8192;
	
	public static void emptyBuffer(char[] buffer) {
		for (int i = 0; i < buffer.length; i++) {
			buffer[i] = 0;
		}
	}
	
	public static int maxLength(String[] strings) {
		int maxLength = 0;
		for (int i = 0; i < strings.length; i++) {
			if (strings[i].length()>maxLength)
				maxLength = strings[i].length();
		}
		return maxLength;
	}

}
